import React from 'react';
import { Router, Route, hashHistory, IndexRedirect } from 'dva/router';
import App from './containers/App';
import NotFound from './containers/NotFound/NotFound';

import {
  OrderInfo,
  CreateRefund_Qcp,

  Role,

  DailyReport,
  ProblemSummary,
  PasswordReset,
  Refund,
  Suggestion,
  NoteWarn,

  RefundManage,
  Payment,
  Bill,
  ThirdRefund,
  CustomRent,
  BillDownload,

  BasicInformation,
  Busticket,
  CustomLine,
  RentBill,
  RentOrder,
  RentPath,
  RentRefund,
  RentStart,
  RentStartOrder,
  RentTable,
  AllInfo,



  LineManage,
  OrderQuery,
  LineStatistic,
  MarketActive,

  Promoter,
  Erweima,
  LoginStatistic,
  Extension,

  ShiftUpdate,
  MachinError,
  NumberShift,
  AppLog,
  AppOperation,
  SmsLog,
  MachineDetail,
  NotOrder,
  BalanceAlarm,
  BreakStation,
  StationContact,
  UpdateLog,

  BillState,
  ShiftQuery,
  GenerateCode,
  Record,

  Ticket,
  Company,
  Configuration,
  User,

  About,
  Blank,
  Login,
  Signup,
  Lock,
  Profile,

  Dashboard1,
  Dashboard2,
  Mail,
  Grid,
  GridPlayground,
  Layout,
  Card,
  Menu,
  TableAnim,
  ListAnim,
  DetailSwitch,
  ListSort,
  PicAnim,
  BannerAnim,
  LogoGather,

  Avatar,
  Button,
  Icon,
  Checkbox,
  Input,
  Radio,
  Switch,
  Timeline,
  Badge,
  Tag,
  Calendar,
  Slider,

  Affix,
  Pagination,
  Breadcrumb,
  Steps,

  Popconfirm,
  Popover,
  Notifications,
  Messages,
  Alert,
  Tooltip,
  Collapse,
  Tree,
  TreeSelect,
  Modal,
  Tabs,
  Carousel,
  Progress,

  Mention,
  Rate,
  Select,
  Transfer,
  Dropdown,
  AutoComplete,
  Cascader,
  DatePicker,
  TimePicker,

  BaseForm,
  AdvancedForm,
  AdvancedSearch,

  BaseTable,
  Advanced,
  CusTable,
  Playground
} from './components';


export default function () {
  return (
    <Router history={hashHistory}>
      <Route path="/" breadcrumbName="首页" component={App}>
        <IndexRedirect to="dashboard1" />
        <Route path="orderinfo" breadcrumbName="订单列表" component={OrderInfo} />
        <Route path="CreateRefund_Qcp" breadcrumbName="申请退款" component={CreateRefund_Qcp} />

        <Route path="role" breadcrumbName="角色管理" component={Role} />
        <Route path="company" breadcrumbName="单位管理" component={Company} />
        <Route path="configuration" breadcrumbName="系统配置" component={Configuration} />
        <Route path="user" breadcrumbName="用户管理" component={User} />

        <Route path="AllInfo" breadcrumbName="车站基础信息" component={AllInfo} />
        <Route path="notewarn" breadcrumbName="短信提醒" component={NoteWarn} />
        <Route path="dailyreport" breadcrumbName="每日报表" component={DailyReport} />
        <Route path="problemsummary" breadcrumbName="问题总结" component={ProblemSummary} />
        <Route path="passwordreset?name=123" breadcrumbName="密码重置" component={PasswordReset} />
        <Route path="sendmessages" breadcrumbName="发送短信" component={SendMessages} />
        <Route path="refund" breadcrumbName="我的退款" component={Refund} />
        {/* <Route path="stationquery" breadcrumbName="车站查询" component={StationQuery} /> */}
        <Route path="suggestion" breadcrumbName="投诉建议" component={Suggestion} />

        <Route path="refundmanage" breadcrumbName="退款管理" component={RefundManage} />
        <Route path="payment" breadcrumbName="支付查询" component={Payment} />
        <Route path="bill" breadcrumbName="账单对账" component={Bill} />
        <Route path="thirdrefund" breadcrumbName="第三方退款" component={ThirdRefund} />
        <Route path="customrent" breadcrumbName="定制约租退款" component={CustomRent} />
        <Route path="billDownload" breadcrumbName="定制约租退款" component={BillDownload} />

        <Route path="basicinformation" breadcrumbName="基础信息" component={BasicInformation} />
        <Route path="busticket" breadcrumbName="汽车票" component={BusTicket} />
        <Route path="customline" breadcrumbName="定制客运" component={CustomLine} />
        <Route path="rentOrder" breadcrumbName="城际租车订单" component={RentOrder} />
        <Route path="rentPath" breadcrumbName="城际租车路线管理" component={RentPath} />
        <Route path="rentBill" breadcrumbName="电话录单" component={RentBill} />
        <Route path="rentRefund" breadcrumbName="城际租车退款信息" component={RentRefund} />
        <Route path="rentStart" breadcrumbName="派车" component={RentStart} />
        <Route path="rentStartOrder" breadcrumbName="派车单列表" component={RentStartOrder} />
        <Route path="rentTable" breadcrumbName="约租车统计报表" component={RentTable} />

        {/* <Route path="linemanage" breadcrumbName="线路管理" component={LineManage} />
        <Route path="orderquery" breadcrumbName="订单查询" component={OrderQuery} />
        <Route path="linestatistic" breadcrumbName="订单查询" component={LineStatistic} />
        <Route path="marketactive" breadcrumbName="营销活动管理" component={MarketActive} /> */}

        {/* <Route path="promoter" breadcrumbName="推广人" component={Promoter} /> */}
        <Route path="erweima" breadcrumbName="推广二维码" component={Erweima} />
        <Route path="loginstatistic" breadcrumbName="登录统计" component={LoginStatistic} />
        <Route path="extension" breadcrumbName="推广统计" component={Extension} />

        <Route path="shiftupdate" breadcrumbName="班次更新" component={ShiftUpdate} />
        <Route path="machinerror" breadcrumbName="自助机错误" component={MachinError} />
        <Route path="numbershift" breadcrumbName="班次更新天数" component={NumberShift} />
        <Route path="applog" breadcrumbName="APP登陆日志" component={AppLog} />
        <Route path="appoperation" breadcrumbName="APP运行日志" component={AppOperation} />
        <Route path="smslog" breadcrumbName="短信日志" component={SmsLog} />
        <Route path="machinedetail" breadcrumbName="自助机详情" component={MachineDetail} />
        <Route path="notorder" breadcrumbName="未撤销订单" component={NotOrder} />
        <Route path="balancealarm" breadcrumbName="余额报警" component={BalanceAlarm} />
        <Route path="breakstation" breadcrumbName="断网车站" component={BreakStation} />
        <Route path="stationContact" breadcrumbName="车站联系人" component={StationContact} />
        <Route path="updateLog" breadcrumbName="更新日志" component={UpdateLog} />

        <Route path="billstate" breadcrumbName="账单报表" component={BillState} />
        <Route path="shiftquery" breadcrumbName="班次查询" component={ShiftQuery} />
        <Route path="generatecode" breadcrumbName="生成二维码" component={GenerateCode} />
        <Route path="record" breadcrumbName="活动记录" component={Record} />

        <Route path="ticket" breadcrumbName="售票统计" component={Ticket} />

        <Route path="dashboard1" breadcrumbName="仪表盘1" component={Dashboard1} />
        <Route path="dashboard2" breadcrumbName="仪表盘2" component={Dashboard2} />

        <Route path="mail" breadcrumbName="邮箱" component={Mail} />

        <Route path="profile" breadcrumbName="资料" component={Profile} />

        <Route path="affix" breadcrumbName="固钉" component={Affix} />
        <Route path="pagination" breadcrumbName="分页" component={Pagination} />
        <Route path="breadcrumb" breadcrumbName="面包屑" component={Breadcrumb} />
        <Route path="steps" breadcrumbName="步骤条" component={Steps} />

        <Route path="avatar" breadcrumbName="头像" component={Avatar} />
        <Route path="button" breadcrumbName="按钮" component={Button} />
        <Route path="icon" breadcrumbName="图标" component={Icon} />
        <Route path="tag" breadcrumbName="标签" component={Tag} />
        <Route path="switch" breadcrumbName="开关" component={Switch} />
        <Route path="calendar" breadcrumbName="日历" component={Calendar} />
        <Route path="checkbox" breadcrumbName="多选框" component={Checkbox} />
        <Route path="radio" breadcrumbName="单选框" component={Radio} />
        <Route path="input" breadcrumbName="输入框" component={Input} />
        <Route path="timeline" breadcrumbName="时间轴" component={Timeline} />
        <Route path="badge" breadcrumbName="徽标数" component={Badge} />
        <Route path="slider" breadcrumbName="滑动输入条" component={Slider} />


        <Route path="popconfirm" breadcrumbName="气泡确认框" component={Popconfirm} />
        <Route path="popover" breadcrumbName="气泡卡片" component={Popover} />
        <Route path="notification" breadcrumbName="气泡确认框" component={Notifications} />
        <Route path="message" breadcrumbName="全局提示" component={Messages} />
        <Route path="alert" breadcrumbName="警告提示" component={Alert} />
        <Route path="tooltip" breadcrumbName="文字提示" component={Tooltip} />
        <Route path="collapse" breadcrumbName="折叠面板" component={Collapse} />
        <Route path="tree" breadcrumbName="树形控件" component={Tree} />
        <Route path="treeselect" breadcrumbName="树选择" component={TreeSelect} />
        <Route path="modal" breadcrumbName="对话框" component={Modal} />
        <Route path="tabs" breadcrumbName="标签页" component={Tabs} />
        <Route path="carousel" breadcrumbName="走马灯" component={Carousel} />
        <Route path="progress" breadcrumbName="进度条" component={Progress} />


        <Route path="mention" breadcrumbName="提及" component={Mention} />
        <Route path="rate" breadcrumbName="评分" component={Rate} />
        <Route path="select" breadcrumbName="选择器" component={Select} />
        <Route path="transfer" breadcrumbName="穿梭框" component={Transfer} />
        <Route path="dropdown" breadcrumbName="下拉菜单" component={Dropdown} />
        <Route path="autocomplete" breadcrumbName="自动完成" component={AutoComplete} />
        <Route path="cascader" breadcrumbName="级联选择" component={Cascader} />
        <Route path="datepicker" breadcrumbName="日期选择框" component={DatePicker} />
        <Route path="timepicker" breadcrumbName="时间选择框" component={TimePicker} />

        <Route path="baseform" breadcrumbName="基本表单" component={BaseForm} />
        <Route path="advancedform" breadcrumbName="高级表单" component={AdvancedForm} />
        <Route path="advancedsearch" breadcrumbName="自定义搜索" component={AdvancedSearch} />

        <Route path="basetable" breadcrumbName="基本表格" component={BaseTable} />
        <Route path="advanced" breadcrumbName="高级表格" component={Advanced} />
        <Route path="playground" breadcrumbName="动态表格" component={Playground} />
        <Route path="custable" breadcrumbName="自定义表格" component={CusTable} />

        <Route path="grid" breadcrumbName="格栅" component={Grid} />
        <Route path="gridplayground" breadcrumbName="格栅配置器" component={GridPlayground} />
        <Route path="layout" breadcrumbName="布局" component={Layout} />
        <Route path="card" breadcrumbName="卡片" component={Card} />
        <Route path="menu" breadcrumbName="菜单" component={Menu} />

        <Route path="logogather" breadcrumbName="Logo动画" component={LogoGather} />
        <Route path="tableanim" breadcrumbName="表格增删" component={TableAnim} />
        <Route path="listanim" breadcrumbName="列表动画" component={ListAnim} />
        <Route path="detailswitch" breadcrumbName="详细说明切换" component={DetailSwitch} />
        <Route path="listsort" breadcrumbName="列表交换位置" component={ListSort} />
        <Route path="picanim" breadcrumbName="图片详细切换" component={PicAnim} />
        <Route path="banneranim" breadcrumbName="Banner" component={BannerAnim} />

        <Route path="blank" breadcrumbName="空白" component={Blank} />
        <Route path="login" breadcrumbName="登录" component={Login} />
        <Route path="signup" breadcrumbName="注册" component={Signup} />
        <Route path="lock" breadcrumbName="锁屏" component={Lock} />
        <Route path="about" breadcrumbName="关于" component={About} />
      </Route>
      <Route path="*" component={NotFound} />
    </Router>
  )
}
